package cn.edu.scau.cmi.zhuangziyuan.safeCombination;

import java.util.ArrayList;

public class organization extends Componentt {
	
	private ArrayList<Componentt> list=new ArrayList<Componentt>();
	

	public organization(String name,String type){
		setname(name);
		setType(type);
		
	}
	
	public void join(Componentt ascription){
		setAscription(ascription);
		}

	public ArrayList<Componentt> getList() {
		return list;
	}

	public void addList(Componentt i) {
		this.list.add(i);
		i.setAscription(this);
	}
		
	public void moveList(Componentt i){
		this.list.remove(i);
		i.setAscription(null);
	}
	
	
}
